import Request from '@/utils/request-util';

/**
 * 电能终端检测告警记录api
 *
 * @author cancan
 * @date 2025/11/08 19:07
 */
export class DevicePowerMonitorAlarmApi {

  static findPage(params) {
    return Request.getAndLoadData('/devicePowerMonitorAlarm/page', params);
  }
  /**
   * 新增
   *
   * @author cancan
   * @date 2025/11/08 19:07
   */
  static add(params) {
    return Request.post('/devicePowerMonitorAlarm/add', params);
  }

  /**
   * 修改
   *
   * @author cancan
   * @date 2025/11/08 19:07
   */
  static edit(params) {
    return Request.post('/devicePowerMonitorAlarm/edit', params);
  }

  /**
   * 删除
   *
   * @author cancan
   * @date 2025/11/08 19:07
   */
  static delete(params) {
    return Request.post('/devicePowerMonitorAlarm/delete', params);
  }

  /**
   * 详情
   *
   * @author cancan
   * @date 2025/11/08 19:07
   */
  static detail(params) {
    return Request.getAndLoadData('/devicePowerMonitorAlarm/detail', params);
  }
}
